package ua.org.extjsbuilder.parser;

public class JSParseException extends RuntimeException {
	private static final long serialVersionUID = -8820803135718939159L;
	
	private int line;

	public JSParseException(Throwable cause) {
		super(cause);
	}
	
	public JSParseException(String message) {
		super(message);
	}

	public JSParseException(String message, int line) {
		super(message);
		this.line = line;
	}

	public int getLine(){
		return line;
	}

	@Override
	public String getMessage() {
		return super.getMessage()+" at line "+line;
	}
}
